package com.example.superoa.model.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;


/**
 * The persistent class for the texam database table.
 * 
 */
@Entity
@NamedQuery(name="Texam.findAll", query="SELECT t FROM Texam t")
public class Texam implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int texamid;

	@Temporal(TemporalType.TIMESTAMP)
	private Date texamend;

	private BigDecimal texamgrade;

	private String texamledge;

	@Temporal(TemporalType.TIMESTAMP)
	private Date texamstart;

	private int texamstatue;

	private String texamtime;

	//bi-directional many-to-many association to Tarrange
	@ManyToMany(mappedBy="texams")
	private List<Tarrange> tarranges;

	//bi-directional many-to-many association to Ttest
	@ManyToMany(mappedBy="texams")
	private List<Ttest> ttests;

	public Texam() {
	}

	public int getTexamid() {
		return this.texamid;
	}

	public void setTexamid(int texamid) {
		this.texamid = texamid;
	}

	public Date getTexamend() {
		return this.texamend;
	}

	public void setTexamend(Date texamend) {
		this.texamend = texamend;
	}

	public BigDecimal getTexamgrade() {
		return this.texamgrade;
	}

	public void setTexamgrade(BigDecimal texamgrade) {
		this.texamgrade = texamgrade;
	}

	public String getTexamledge() {
		return this.texamledge;
	}

	public void setTexamledge(String texamledge) {
		this.texamledge = texamledge;
	}

	public Date getTexamstart() {
		return this.texamstart;
	}

	public void setTexamstart(Date texamstart) {
		this.texamstart = texamstart;
	}

	public int getTexamstatue() {
		return this.texamstatue;
	}

	public void setTexamstatue(int texamstatue) {
		this.texamstatue = texamstatue;
	}

	public String getTexamtime() {
		return this.texamtime;
	}

	public void setTexamtime(String texamtime) {
		this.texamtime = texamtime;
	}

	public List<Tarrange> getTarranges() {
		return this.tarranges;
	}

	public void setTarranges(List<Tarrange> tarranges) {
		this.tarranges = tarranges;
	}

	public List<Ttest> getTtests() {
		return this.ttests;
	}

	public void setTtests(List<Ttest> ttests) {
		this.ttests = ttests;
	}

}